package com.ankicoo.practice.coding;

import java.util.Objects;

/**
 * Description:
 *
 * @author : QCYANG
 * @date : 2022/10/14 15:48
 */
public class TowAdd {
    public static void main(String[] args) {

        String str = "<p style=\"text-align:center;color:#3E3E3E;font-family:&quot;font-size:14px;background-color:#FFFFFF;\">" +
                "<img class=\"\" src=\"http://mmbiz.qpic.cn/mmbiz_jpg/A2cvk4ol9EQibp95ia2CUiaXfichh8Z1q2ia96F3mXRGqI9tbsNFsqZR8jHvkeibPT7FWGnHl4ic55AUT5hBoXRs2tHQw/640?wx_fmt=jpeg&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1\" style=\"height:auto !important;width:236px !important;\" /> " +
                "</p> " +
                "<p style=\"color:#3E3E3E;font-family:&quot;font-size:14px;background-color:#FFFFFF;text-align:justify;\"> " +
                "<span style=\"font-size:16px;\">&nbsp; &nbsp; &nbsp; &nbsp; 教授，博士生导师。现任山东大学校长。兼任教育部经济学教学指导委员会委员、教育部专业设置与专业建设委员会委员、中国财政学会和中国税务学会常务理事等职，享受国务院政府特殊津贴专家。主要研究方向为税收基本理论、公共品供给、地方财政运行及公共政策等。</span> " +
                "</p>";
        String reg = "[^\u4e00-\u9fa5]";
        str = str.replaceAll(reg, "");

//        int[] nums = {-1,-2,-3,-4,-5};
//        int target = -8;
//        int[] ints = twoSum(nums, target);
        System.out.println(str);

    }

    public static int[] twoSum(int[] nums, int target) {
        int[] result = new int[2];
        for(int i = 0 ;i<nums.length; i++){
            if(i<nums.length-1){
                for(int j=i+1;j<nums.length;j++){
                    if(nums[i]+nums[j] == target){
                        System.out.println(i+","+j);
                        result[0] = i;
                        result[1] = j;
                        break;
                    }
                }
            }
            if(!(result[0] == 0 && result[0] == result[1])){
                break;
            }
        }
        return result;
    }
}
